#include <stdio.h>

static void split_time(int YYMMDDhhmm, int& year, int& month, int& day, int& hour, int& minute)
{
    int *array[] = {&year, &month, &day, &hour, &minute};
    int i = 0;

    for(i = 4; i >= 0 && YYMMDDhhmm != 0; --i)
    {
        *(array[i]) = YYMMDDhhmm%100;
        YYMMDDhhmm /= 100;
    }
}

int main(void)
{
    int year = 0 ;
    int month = 0;
    int day = 0;
    int hour = 0;
    int minute = 0;

    split_time(1709102359, year, month, day, hour, minute);
    printf("%d\n%d\n%d\n%d\n%d\n%d\n", 1709102359, year, month, day, hour, minute);

    return 0;
}
